<?php

namespace Module\LinkExternalJumper\Admin\Controller;

use Illuminate\Routing\Controller;
use ModStart\Admin\Layout\AdminConfigBuilder;

class ConfigController extends Controller
{
    public function index(AdminConfigBuilder $builder)
    {
        $builder->pageTitle('外链跳转提示插件');
        $builder->values('LinkExternalJumper_WhiteList', '白名单规则')
            ->help('白名单规则，如 https://www.example.com');
        $builder->text('LinkExternalJumper_Tips', '文字提示')
            ->defaultValue('您即将离开本站，请注意您的帐号和财产安全');
        $builder->formClass('wide');
        return $builder->perform();
    }

}
